<template>
	<view>
		<scroll-view class="nav-container" scroll-x="true">
			<view class="nav-item" v-for="(item, index) in navItems" :key="index">
				{{ item }}
			</view>
		</scroll-view>
		<MyVideo></MyVideo>
	</view>
</template>

<script>
	import MyVideo from "../../components/MyVideo.vue"
	export default {
		data() {
			return {
				navItems: ["推荐", "热榜", "搞笑", "直播", "科技", "儿童", "动漫", "本地", "长视频"]
			}
		},
		methods: {

		},

		components: {
			MyVideo
		}
	}
</script>

<style>
	.nav-container {
		white-space: nowrap;
		overflow-x: auto;
	}

	.nav-item:nth-child(1) {
		border-bottom: #F5433F 8rpx solid;
	}

	.nav-item {
		color: #000;
		display: inline-block;
		padding: 10rpx 18rpx;
		margin-right: 5rpx;
		border-radius: 5rpx;
	}
</style>